package com.edais.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.MobileValidate;
import com.edais.persistence.CaptchaMapper;

@Repository

public class CaptchaDao {
	@Autowired
	private CaptchaMapper captchaMapper;

	public String getMobileById(String userId) throws Exception {
		return this.captchaMapper.getMobileById(userId);
	}
	
	public void saveRandomCode(MobileValidate mobileValidate) throws Exception {
		this.captchaMapper.saveRandomCode(mobileValidate);
	}
}
